﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zmotionlib
{
    /// <summary>
    /// 操作结果类
    /// </summary>
    class OPerationResult
    {
        //结果
        public bool IsSucess {  get; set; }
        //错误信息
        public string ErrorMessage { get; set; }

        public static OPerationResult Ok()
        {
            return new OPerationResult
            {
                IsSucess = false,
                ErrorMessage = "Sucess"
            };
        }
        public static OPerationResult Fail()
        {
            return new OPerationResult
            {
                IsSucess=false,
                ErrorMessage="Fail"
            };
        }

    }
}
